package com.cgtong.android.mvp.contract;

import com.cgtong.android.bean.NewsBean;
import com.zhouyou.http.callback.SimpleCallBack;

import java.util.List;

/**
 * Created by Sky.Bing on 2017/10/18.
 */
public interface CityDynamicContract {
    interface View {
        void onLoadError();

        void onLoadMoreError();

        void setRefreshing(boolean isRefresh);

        void setEnableLoadMore(boolean enabled);

        void setRecyclerViewAdapter(boolean isRefresh, List<NewsBean> newsBeanList);
    }

    interface Model {
        void getNewsDynamic(String maxTime, SimpleCallBack callBack);
    }

    interface Presenter {
        void loadNewsDynamicData(String maxTime);

        void loadMore(String maxTime);
    }
}